/**
 * 
 */
package com.orange.handler.manage.impl;

import java.sql.SQLException;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.dbhelp.page.Page;
import com.orange.handler.manage.AuthSysDownloadService;
import com.orange.modules.dao.manage.AuthSysDownloadRepository;
import com.orange.modules.entity.manage.AuthSysDownload;

/**
 * @author gaogs
 *
 * 2016-12-12
 */
@Service
public class AuthSysDownloadServiceImpl implements AuthSysDownloadService {

	@Autowired
	private AuthSysDownloadRepository authSysDownloadRepository;
	/* (non-Javadoc)
	 * @see com.orange.handler.manage.AuthSysDownloadService#saveAuthSysDownloadInfo(com.orange.modules.entity.manage.AuthSysDownload)
	 */
	@Override
	public void saveAuthSysDownloadInfo(AuthSysDownload a) {
		authSysDownloadRepository.saveAuthSysDownloadInfo(a);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.manage.AuthSysDownloadService#deleteAuthSysDownloadInfo(java.lang.String)
	 */
	@Override
	public void deleteAuthSysDownloadInfo(String pid) {
		authSysDownloadRepository.deleteAuthSysDownloadInfo(pid);
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.manage.AuthSysDownloadService#queryAuthSchoolPageInforBymajor(java.util.Map)
	 */
	@Override
	public Page<AuthSysDownload> queryAuthSysDownloadInfoPage(
			Map<String, String> map) throws SQLException {
		Page<AuthSysDownload> page=authSysDownloadRepository.queryAuthSysDownloadInfoPage(map);
		return page;
	}

	/* (non-Javadoc)
	 * @see com.orange.handler.manage.AuthSysDownloadService#queryAuthSysDownloadById(java.lang.String)
	 */
	@Override
	public AuthSysDownload queryAuthSysDownloadById(String pid) {
		AuthSysDownload a=authSysDownloadRepository.queryAuthSysDownloadById(pid);
		return a;
	}

}
